from selenium import webdriver
from hyrobot.common import *
from time import sleep

def open_broswer():
    print('打开浏览器')
    wb = webdriver.Chrome()
    wb.implicitly_wait(5)

    GSTORE['global_webdriver'] = wb
    return wb
def get_global_webdriver():
    return GSTORE['global_webdriver']
def mgr_login(wb):

    wb.get('http://127.0.0.1/mgr/sign.html')
    wb.find_element_by_id('username').send_keys('byhy')
    wb.find_element_by_id('password').send_keys('88888888')
    wb.find_element_by_tag_name('button').click()
